package cn.z2huo.knowledge.concurrency.producerconsumer;

import cn.hutool.core.util.RandomUtil;

/**
 * <p>
 *
 * @author z2huo
 */
public final class Datas {

    private Datas() {
    }

    public static Data produceOne() {
        return new Data()
                .setName("name " + RandomUtil.randomString(8))
                .setValue("value " + RandomUtil.randomInt(0, Integer.MAX_VALUE))
                .setId(RandomUtil.randomLong(0, Long.MAX_VALUE));
    }
}
